package com.office.task.service.impl;

import com.office.common.utils.SecurityUtils;
import com.office.task.domain.TaskSystem;
import com.office.task.mapper.TaskSystemMapper;
import com.office.task.service.TaskSystemService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author: 柒月
 * @date: 2025/7/14 下午4:04
 * @version: 1.0
 */
@Service
public class TaskSystemServiceImpl implements TaskSystemService {

    @Resource
    public TaskSystemMapper taskSystemMapper;

    @Override
    public TaskSystem getMonthCount() {
        Long loginUserId = SecurityUtils.getUserId();
        return taskSystemMapper.selectMonthCount(loginUserId);
    }
}
